package com.friend.chat.page.view.friend

import android.app.Activity
import android.content.Intent
import com.friend.chat.base.BaseActivity
import com.friend.chat.databinding.ActivityQrscanBinding
import com.friend.chat.page.bean.UserBean
import com.friend.chat.page.vm.QrFriendViewModel

class QRScanActivity : BaseActivity<ActivityQrscanBinding, QrFriendViewModel>() {


    companion object {
        fun open(activity: Activity, userBean: UserBean) {
            val intent = Intent(activity, QRScanActivity::class.java)
            intent.putExtra("userBean", userBean)
            activity.startActivity(intent)
        }
    }

    override fun yourViewModel(): QrFriendViewModel {
        return QrFriendViewModel()
    }

    override fun yourViewBing(): ActivityQrscanBinding {
        return ActivityQrscanBinding.inflate(layoutInflater)
    }

    override fun init() {

    }

}